<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎ChaoPai商店</title>
</head>
<body>
        <form action="do">
            <table  border ="1" width="30%" >

                <tr >
                    <td colspan="2">
                        <%Double price1 = 270.00;%>
                        <p  align="center">衣服   270.00元 </p>
                        <input type="checkbox" name = "goods"  value = "goods1">加入购物车
                        <% session.setAttribute("price1",price1); %>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <%Double price2 = 84.00;%>
                        <p align="center">帽子  84.00元 </p>
                        <input type = "checkbox" name = "goods" value = "goods2">加入购物车
                        <% session.setAttribute("price2",price2); %>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <%Double price3 = 350.00;%>
                        <p align="center">鞋子   350.00元 </p>
                        <input type="checkbox"  name = "goods" value = "goods3">加入购物车
                        <% session.setAttribute("price3",price3); %>
                    </td>
                </tr>

                <%--
                可继续添加其他商品模块
                --%>

                <tr>
                    <td>
                        <input type="submit" value = "全部加入购物车" id = "submit">
                    </td>
                    <td >
                        <a href="cart.jsp" align="center"> 查看购物单</a>
                    </td>
                </tr>

            </table>
        </form>
</body>
</html>
